<?php

namespace app\common\model;

use think\Model;

class AdminLog extends Model
{
    /**
     * 添加操作日志
     *
     * @param [type] $aid
     * @param [type] $adname
     * @param string $note
     * @return void
     */
    public function addLog($aid,$adname, $note = '')
    {
        $data = [
			'aid' => $aid,
			'ad_name' => $adname,
			'note' => $note,
			'create_time' => date('Y-m-d H:i:s')
		];

		return $this->insert($data);
    }
}
